package com.nbsaas.boot.customer.rest.convert;

import com.nbsaas.boot.customer.data.entity.CustomerLevel;
import com.nbsaas.boot.customer.api.domain.simple.CustomerLevelSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 客户等级-列表对象转换器
*/

public class CustomerLevelSimpleConvert implements Converter<CustomerLevelSimple, CustomerLevel> {




@Override
public CustomerLevelSimple convert(CustomerLevel source) {
    CustomerLevelSimple result = new CustomerLevelSimple();

                result.setNote(source.getNote());
                result.setShop(source.getShop());
                result.setMoney(source.getMoney());
                result.setBackground(source.getBackground());
                result.setSort_num(source.getSort_num());
                result.setName(source.getName());
                result.setIcon(source.getIcon());
                result.setDiscount(source.getDiscount());
                result.setId(source.getId());


    return result;
}

}